package chen.web.config.spring;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import chen.web.user.InternalRoleProvider;
import chen.web.user.RoleManager;
import chen.web.user.RoleManagerImpl;

@Configuration
public class RoleManagerConfig {
	//角色管理
	public @Bean RoleManager roleManager(){
		RoleManager roleManager = new RoleManagerImpl(); 
		InternalRoleProvider.setRoleManager(roleManager);
		return roleManager;
	}
}
